// The code below should help let btn = document.createElement("button"); btn.innerHTML = "Submit"; btn.type = "submit"; btn.name = "formBtn"; document.body.appendChild(btn);